﻿package com.midia.playerVideo.events {
	
	import com.midia.playerVideo.DadosVideo;
	import flash.events.Event;
	
	public class PlayerVideoEvent extends Event {
		
		public static const VIDEO_START:String = "videoStart";
		public static const VIDEO_END:String = "videoEnd";
		public static const VIDEO_END_ALL:String = "videoEndAll";
		public static const VIDEO_SCREEN:String = "videoScreen";
		public static const VIDEO_PLAY_PAUSE:String = "videoPlayPause";
		public static const VIDEO_SEEK:String = "videoSeek";
		
		private var _fullScreen:Boolean;
		private var _dadosVideo:DadosVideo;
		private var _pause:Boolean;
		private var _progresso:uint;
		
		public function PlayerVideoEvent (type:String, screen:Boolean = false, dadosVideo:DadosVideo = null, pause:Boolean = false):void {
			super (type);
			this._fullScreen = screen;
			this._dadosVideo = dadosVideo;
			this._pause = pause;
		}
		
		public function get fullScreen ():Boolean {
			return this._fullScreen;
		}
		
		public function get dadosVideo ():DadosVideo {
			return this._dadosVideo;
		}
		
		public function get pause():Boolean { 
			return this._pause;
		}
		
		public function get progresso():uint { 
			return this._progresso; 
		}
		
		public function set progresso(value:uint):void {
			this._progresso = value;
		}
		
	}
	
}